﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using K3R.Web.Interface;
using System.Collections;

public partial class _Default : System.Web.UI.Page {
	protected void Page_Load(object sender, EventArgs e) {
		if (!IsPostBack) {
			BindProfiles();
			BindLogs();
		}
	}

	protected void BindProfiles() {
		profileListView.DataSource = Settings.Profiles;
		profileListView.DataKeyNames = new string[] { "Name" };
		profileListView.DataBind();
	}

	protected void BindLogs() {
		logListView.DataSource = LogCollection.Load(null, 100, null, null);
		logListView.DataKeyNames = new string[] { "ID" };
		logListView.DataBind();
	}
}
